package com.joint.cloud.common.model.wrapper;

import java.util.List;

/**
 * @author lilengyi
 * @date 2020/1/20 15:04
 *
 * Persistent Object持久化对象与Entity实体类转换
 * @param <PO>
 * @param <Entity>
 */
public interface BasePOEntityWrapper<PO, Entity> {

    PO toPOFromEntity(Entity entity, PO po);

    Entity toEntityFromPO(PO po, Entity entity);

    List<PO> toPOListFromEntity(List<Entity> entities);

    List<Entity> toEntityListFromPO(List<PO> pos);
}
